﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GTA
{
    public partial class FrmReportViewer : BaseForm
    {
        #region Local Objects        
        Object source;
        #endregion

        #region Starting Form
        public FrmReportViewer(Object source)
        {
            InitializeComponent();
            this.source = source;
        }
        private void FrmReportViewer_Load(object sender, EventArgs e)
        {
            OpenReport();
        } 
        #endregion

        #region Methods
        private void OpenReport()
        {
            reportViewer.ReportSource = source;
            reportViewer.Show();
        } 
        #endregion
    }
}
